package cn.edu.sdyu.ie.crs.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

//@Schema(name = "自习室预约信息")
@ApiModel("自习室预约信息")
@Data
@Entity
public class SelfStudyRoomAppointment
{

    //@Schema(name = "自习室预约Id")
    @ApiModelProperty("自习室预约Id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @ApiModelProperty("预约日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date appointmentDate;  // 预约日期
    @ApiModelProperty("教室ID")
    private Integer classroomId;  // 教室ID
    @ApiModelProperty("用户ID")
    private Integer userid;  // 用户ID
    @ApiModelProperty("用户名")
    private String username;  // 用户名
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;  // 创建时间



}
